<script setup lang="ts">
import { dateZhCN, zhCN } from 'naive-ui'
import { Boot } from '@wangeditor/editor'
import markdownModule from '@wangeditor/plugin-md'

Boot.registerModule(markdownModule)

const route = useRoute()
</script>

<template>
  <n-config-provider
    class="w-full h-full"
    :locale="zhCN"
    :date-locale="dateZhCN"
  >
    <n-notification-provider>
      <n-modal-provider>
        <n-message-provider>
          <RouterView :key="route.fullPath" />
        </n-message-provider>
      </n-modal-provider>
    </n-notification-provider>
  </n-config-provider>
</template>
<style scoped lang="scss"></style>
